package com.yzh.design.demo;

public class Singleton_07 {
    private Singleton_07(){}
    public static Singleton_07 getInstance() {
        return Singleton.INSTANCE.getInstance();
    }
    private enum Singleton {
        INSTANCE;
        private Singleton_07 instance;
        Singleton(){
            instance = new Singleton_07();
        }
        public Singleton_07 getInstance() {
            return instance;
        }
    }
}